﻿using EmprestaAE.MVVM.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml;

namespace EmprestaAE.Common.AttachedProperties
{
    class Commands
    {


        public static VMCommand GetAttachedCommand(DependencyObject obj)
        {
            return (VMCommand)obj.GetValue(AttachedCommandProperty);
        }

        public static void SetAttachedCommand(DependencyObject obj, VMCommand value)
        {
            obj.SetValue(AttachedCommandProperty, value);
        }

        // Using a DependencyProperty as the backing store for AttachedCommand.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AttachedCommandProperty =
            DependencyProperty.RegisterAttached("AttachedCommand", typeof(VMCommand), typeof(Commands), new PropertyMetadata(0));

        
    }
}
